﻿@model IEnumerable< VideoCache.Server.Model.AlbumInfo>

@{
    ViewBag.Title = "视频管理";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}
<h2 class="pageTitle">@ViewBag.Title</h2>

<div class="easyui-panel wrap">
<form action="@Url.Action("Index")" method = "get">
    <a href="@Url.Action("Create")" class="lbtn">新建</a>
    <a href="@Url.Action("Delete")" class="lbtn selectDelete" group="chk">删除</a>  
    <a href="@Url.Action("Apply")" class="lbtn">审核通过</a>  | 

    <label>关键字 <input name="keyword" type="text" value="@ViewBag.Keyword" class="" /></label>
    @Html.DropDownList("TypeId", "不限类别")
    @Html.DropDownList("AreaId", "不限地区")
    @Html.DropDownList("Status", "不限状态")
    <button type="submit">搜索</button>
</form>
</div>

<div class="wrap">
<table class="ten-table" width="100%">
<thead>
    <tr>
        <th width="10"><input type="checkbox" group="chk" class="selectAll" /></th>
        <th width="50">编号</th>
        <th>标题</th>
        <th width="50">类别</th>
        <th width="50">地区</th>
        <th width="50">评分</th>
        <th width="150">导演</th>
        <th width="250">主演</th>
        <th width="50">年代</th>
        <th width="50">完结</th>
        <th width="50">优先级</th>
        <th width="150">更新时间</th>
        <th width="50">状态</th>
        <th width="80"></th>
    </tr>
</thead>
<tbody>
@foreach (var item in Model)
{
    <tr>
        <td><input type="checkbox" group="chk" value="@item.Id" /></td>
        <td>@item.Id</td>
        <td><a href="@Url.Action("Index", "Episode", new { id = item.Id })">@item.Title</a></td>
        <td>@Html.GetDictionary(item.TypeId)</td>
        <td>@Html.GetDictionary(item.AreaId)</td>
        <td>@item.Rating</td>
        <td>@Html.ShowText(item.Director,13)</td>
        <td>@Html.ShowText(item.Actor,23)</td>
        <td>@item.PubYear</td>
        <td>@item.IsEnd</td>
        <td>@item.Priority</td>
        <td>@String.Format("{0:g}", item.ModifyTime)</td>
        <td>@Html.GetDictionary(item.Status)</td>
        <td>
            @Html.ActionLink("修改", "Edit", new { id=item.Id }) |
            @Html.ActionLink("删除", "Delete", new { id = item.Id }, new { @class = "delete" })
        </td>
    </tr>
}
</tbody>
</table>

<div class="ten-pager">
    @Html.Pager("page", (int)ViewBag.PageSize, (int)ViewBag.RecordCount)
</div>
</div>